﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using Abp.Organizations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCompanyName.AbpZeroTemplate.Product
{
   public  class ProductRelationShip : Entity, IHasCreationTime, IMustHaveOrganizationUnit
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 当前负责人所在的OU
        /// </summary>
        public long OrganizationUnitId { get; set; }

        /// <summary>
        /// 数据Id
        /// </summary>
        public Guid R_Id { get; set; }

        public string UCCID { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 剩余量(M)
        /// </summary>
        public float Balance { get; set; }

        /// <summary>
        /// 使用量(M)
        /// </summary>
        public float UseQty { get; set; }

        /// <summary>
        /// 总流量(M)
        /// </summary>
        public float TotalQty { get; set; }

        /// <summary>
        /// 购买状态 
        /// 1:已购，0：未购
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 产品优先级
        /// 1级为最高
        /// </summary>
        public int Priority { get; set; }

        /// <summary>
        /// 购买日期
        /// </summary>
        public DateTime BuyDate { get; set; }

        /// <summary>
        /// 套餐结束日期
        /// </summary>
        public DateTime EndDate { get; set; }
    }
}
